<nz-card  [nzTitle]="cardTitle"  [nzExtra]="extraTemplate">

  <nz-table #basicTable  [nzData]="il"  [nzScroll]="{ x: '2000px', y: '520px' }">
    <thead>
    <tr>
      <th>进货批次</th>
      <th>品名</th>
      <th>进货日期</th>
      <th>产品信息</th>
      <th>入库数量（公斤）</th>
      <th>供应商名称</th>
      <th>采购人员</th>

      <th>仓库操作员</th>
      <!--<th>链码</th>-->
      <th>操作</th>
    </tr>
    </thead>
    <tbody>
    <tr *ngFor="let data of basicTable.data">
      <td>{{data.incompc}}</td>
      <td>{{data.pm}}</td>
      <td>{{data.jhrq | date:'yyyy年MM月dd日'}}</td>
      <td>{{data.cpxx}}</td>
      <td>{{data.rksl}}</td>
      <td>{{data.gys}}</td>
      <td>{{data.cgry}}</td>
      <td>{{data.ckczy}}</td>
  <!--    <td>
        <p nz-typography nzCopyable  [(nzContent)]="data.blockchain"></p>
      </td>
-->
      <td>
        <button nz-button nzType="primary" (click)="update(data.incomingid)">修改</button>
        <button nz-button nzType="danger" (click)="delete(data.incomingid)">删除</button>
      </td>
    </tr>
    </tbody>
  </nz-table>


</nz-card>
<ng-template #extraTemplate>
 <a nz-button nzType="primary" (click)="income()">入库</a>
</ng-template>


<ng-template #cardTitle>

  <nz-row [nzGutter]="16">
    <nz-col>
      <nz-statistic  [nzValue]="total" [nzTitle]="'在库生豆总量'" [nzSuffix]="'公斤'" [nzValueStyle]="{ color: '#3F8600' }"></nz-statistic>
    </nz-col>

    <nz-col *ngFor="let s of sl">
      <nz-statistic  [nzValue]="s.total" [nzTitle]="s.pm" [nzSuffix]="'公斤'" ></nz-statistic>
    </nz-col>


  </nz-row>

</ng-template>
